package com.kzj.mls.request;



import com.kzj.mls.activity.GBaseActivity;
import com.kzj.mls.recyclerCard.basic.MaterialListView;
import com.kzj.mls.recyclerCard.basic.SuperSwipeRefresh;
import com.loopj.android.http.RequestParams;

/**
 * 后台调用接口
 *
 * @author xyg
 *
 */
public interface IRequestServer {

    /**
     * 后台调用方法
     *
     * @param url
     *            请求服务器的url
     * @param params
     *            请求参数
     * @param instanceClass
     *            model类的class对象
     * @param callBack
     *            调用接口回调对象

     */
/*    public <T extends IBaseResponse> void handleMethod(String url,
                                                       RequestParams params, final Class<T> instanceClass,
                                                       final ICallBackForRequestServer<T> callBack);*/
    /**
     * 表单模式Multipart
     *
     * @param url
     *            请求服务器的url
     * @param instanceClass
     *            model类的class对象
     * @param callBack
     *            调用接口回调对象

     */
/*    public <T extends IBaseResponse> void handleMethodMultipart(String url,
                                                                HttpEntity httpentity, final Class<T> instanceClass,
                                                                final ICallBackForRequestServer<T> callBack);*/
 
    public <T extends IBaseResponse> void handleMethod(GBaseActivity gBaseActivity, MaterialListView materialListView, final SuperSwipeRefresh swipeRefresh, final boolean isLoadMore, String url,
                                                       RequestParams requestParams, final Class<T> instanceClass,
                                                       final ICallBackForRequestServer<T> callBack);
}
